package com.hqully.labmanage.domain.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

import lombok.Data;

/**
 * [Role]DTO
 *
 * @author hqully
 * @date 2022-10-08 10:40:56
 */
@ApiModel(description = "")
@Data
public class RoleDTO implements Serializable {

    private static final long serialVersionUID = -77999891752340364L;
    
    /**
     * 
     */
    @ApiModelProperty("")
    @NotNull(message = "不能为空")
    private Long id;
    
    /**
     * 
     */
    @ApiModelProperty("")
    @NotBlank(message = "不能为空")
    @Length(max = 20, message = "长度不能超过20")
    private String name;
    

}

